module ApplicationHelper
  
  def is_current_page?(args = {})
    args.keys.each_with_object({:current_page => true}) do |key,results|
      results[:current_page] = results[:current_page] && args[key] == params[key]
    end[:current_page]
  end
end
